package com.compomics.prioritizer.general.gui;

import com.compomics.prioritizer.db.accessors.User;
import com.compomics.prioritizer.db.accessors.Project;

import javax.swing.*;
import java.sql.Connection;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: Niklaas Colaert
 * Date: 5-dec-2008
 * Time: 12:50:31
 * To change this template use File | Settings | File Templates.
 */
public class AcceptProject extends JFrame {
    private Connection iConnPriority;
    private User iUser;
    private Project[] iProjects;


    public AcceptProject(Connection aConn, User aUser, Project[] aProjects) {
        super("Accept a new project");
        this.iConnPriority = aConn;
        this.iUser = aUser;
        this.iProjects = aProjects;

        Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
        this.setLocation((screen.width / 5), (screen.height / 10));
        ProjectPanelGui lProjectPanel = new ProjectPanelGui(iConnPriority, 3, null,this, iUser,iProjects, null );
        JPanel jpanContent = lProjectPanel.getContentPane();
        setContentPane(jpanContent);
        this.setSize(600, 600);
        this.setVisible(true);

    }

}